package com.example.demo.localLock.controller;

import com.example.demo.localLock.annotion.LocalLock;
import com.example.demo.localLock.annotion.NotRepeatSubmit;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * BookController
 *
 * @author Levin
 * @since 2018/6/06 0031
 */
@RestController
@RequestMapping("/books")
public class BookController {

//    @LocalLock
    @NotRepeatSubmit
    @GetMapping("/login")
    public String query(@RequestParam String token,@RequestParam String name) {
        return "success - " + token + ":" + name;
    }
}